package ihis.model;

import java.io.Serializable;
import java.util.Date;

public class Performance implements Serializable{
	private static final long serialVersionUID = -4573135453008505928L;

	private Date reportDate;
	
	private int periodType;
	
	/** 프로젝트 ID */
	private String projectId;
	
	/** 팀 ID */
	private String teamId;
	
	/** 소유자 ID */
	private String ownerId;

	private int contribution;
	private int responsibility;
	private int attitude;
	private int manageability;
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("PID: ").append(projectId).append(", TID: ").append(teamId).append(", UID: ").append(ownerId)
			.append(", Contribution: ").append(contribution)
			.append(", Responsibility: ").append(responsibility)
			.append(", attitude: ").append(attitude)
			.append(", Manageability: ").append(manageability);
		
		return sb.toString();
	}
	
	public Date getReportDate() {
		return reportDate;
	}
	public void setReportDate(Date measureDate) {
		this.reportDate = measureDate;
	}
	public int getPeriodType() {
		return periodType;
	}
	public void setPeriodType(int periodicType) {
		this.periodType = periodicType;
	}
	public String getProjectId() {
		return projectId;
	}
	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}
	public String getTeamId() {
		return teamId;
	}
	public void setTeamId(String teamId) {
		this.teamId = teamId;
	}
	public String getOwnerId() {
		return ownerId;
	}
	public void setOwnerId(String ownerId) {
		this.ownerId = ownerId;
	}
	public int getContribution() {
		return contribution;
	}
	public void setContribution(int contribution) {
		this.contribution = contribution;
	}
	public int getResponsibility() {
		return responsibility;
	}
	public void setResponsibility(int responsibility) {
		this.responsibility = responsibility;
	}
	public int getAttitude() {
		return attitude;
	}
	public void setAttitude(int attitude) {
		this.attitude = attitude;
	}
	public int getManageability() {
		return manageability;
	}
	public void setManageability(int manageability) {
		this.manageability = manageability;
	}
	
	public boolean isEmpty()
	{
		if(contribution+responsibility+attitude == 0 && manageability == 100)
			return true;
		else 
			return false;
	}
}
